package org.jon.lagoon.service.impl;

import org.jon.lagoon.dao.UserDao;
import org.jon.lagoon.model.User;
import org.jon.lagoon.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Jon on 2017/9/26.
 */
@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserDao userDao;

    @Override
    public User save(User user) {
        return userDao.save(user);
    }

    @Override
    public User findByUserName(String userName) {

        return userDao.findByUserName(userName);
    }
}
